import os

class RootPath:
    @classmethod
    def getRootPath(cls):
        return os.path.dirname(os.path.abspath(__file__))

    @classmethod
    def getWebIniPath(cls):
        return os.path.join(RootPath.getRootPath(),"resources/webpage/baidu/baidu.ini")

    @classmethod
    def getInterfaceIniPath(cls):
        return os.path.join(RootPath.getRootPath(),"resources\\")

if __name__ == '__main__':
    res = RootPath.getRootPath()
    print(res)
